
#include "mainwindow.h"
#include <QApplication>
#include <QFile>

int main(int argc, char **argv)
{
    QApplication app(argc, argv);

    QFile file(":/resources/style/normal/style.css");
    file.open(QIODevice::ReadOnly);
    // qDebug() << file.readAll();
    qApp->setStyleSheet(file.readAll());
    QFont font;
    font.setFamily("黑体");
    font.setPixelSize(16);
    qApp->setFont(font);
    MainWindow mm;
    if (mm.exec() != MainWindow::Accepted)
    {
        return 0;
    }

    return QApplication::exec();
}

